import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 30318
 * Date: 2023-10-17
 * Time: 17:35
 */
public class FindFutureDates {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("Enter today's day: ");
        int today = scanner.nextInt();

        System.out.print("Enter the number of days elapsed since today: ");
        int elapsedDays = scanner.nextInt();

        int futureDay = (today+elapsedDays) % 7;

        String todayName = getDayName(today);
        String futureDayName = getDayName(futureDay);

        System.out.println("Today is " + todayName + " and the future day is " + futureDayName);
    }

    public static String getDayName(int day) {
        switch (day) {
            case 0:
                return "Sunday";
            case 1:
                return "Monday";
            case 2:
                return "Tuesday";
            case 3:
                return "Wednesday";
            case 4:
                return "Thursday";
            case 5:
                return "Friday";
            case 6:
                return "Saturday";
            default:
                return "Input invalid day";
        }
    }
}
